SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 44206: PROC PRINTTO might generate an empty file

DetailsAboutRate It

The PRINTTO procedure requires an open Listing destination in order to route procedure output to an external file or to a SAS catalog entry. ODS LISTING is off by default in the SAS windowing environment in SAS® 9.3 on Microsoft Windows and UNIX operating systems. A file is created by PROC PRINTTO, but no procedure output is written. The file appears to be empty.

To prevent the creation of an empty file with PROC PRINTTO in SAS® 9.3, SAS® Enterprise Guide® users can select ToolsOptionsResultsResults General and verify that the Text option is selected. SAS windowing environment users can select ToolsOptionsPreferencesResults, and select the Create Listing option. In both environments, you can also explicitly open and close the Listing destination using the ODS LISTING statement, as shown below.

ods listing;

proc printto print="check.lst" new; 
run; 

data test; 
   a=5; 
   b=7; 
   c=9; 
run; 

proc means data=test maxdec=1 mean; 
   var a b c; 
run; 

proc printto print=print; 
run;

ods listing close;

Starting with the second maintenance release for SAS 9.3 (TS1M2), the Listing destination is automatically turned on when issuing a PROC PRINTTO statement using the PRINT= option.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASSolaris for x649.3 TS1M09.3 TS1M2
Linux for x649.3 TS1M09.3 TS1M2
Linux9.3 TS1M09.3 TS1M2
HP-UX IPF9.3 TS1M09.3 TS1M2
64-bit Enabled Solaris9.3 TS1M09.3 TS1M2
64-bit Enabled HP-UX9.3 TS1M09.3 TS1M2
64-bit Enabled AIX9.3 TS1M09.3 TS1M2
Windows Vista for x649.3 TS1M09.3 TS1M2
Windows Vista9.3 TS1M09.3 TS1M2
z/OS9.3 TS1M09.3 TS1M2
Teradata on Linux9.3 TS1M09.3 TS1M2
Netezza TwinFin 64-bit SMP Hosts9.3 TS1M09.3 TS1M2
Netezza TwinFin 64-bit S-Blades9.3 TS1M09.3 TS1M2
Netezza TwinFin 32-bit SMP Hosts9.3 TS1M09.3 TS1M2
Netezza TwinFin 32bit blade9.3 TS1M09.3 TS1M2
Greenplum on Linux x649.3 TS1M09.3 TS1M2
Windows 7 Ultimate x649.3 TS1M09.3 TS1M2
Windows 7 Ultimate 32 bit9.3 TS1M09.3 TS1M2
Windows 7 Professional x649.3 TS1M09.3 TS1M2
Windows 7 Professional 32 bit9.3 TS1M09.3 TS1M2
Windows 7 Home Premium x649.3 TS1M09.3 TS1M2
Windows 7 Home Premium 32 bit9.3 TS1M09.3 TS1M2
Windows 7 Enterprise x649.3 TS1M09.3 TS1M2
Windows 7 Enterprise 32 bit9.3 TS1M09.3 TS1M2
Microsoft Windows XP Professional9.3 TS1M09.3 TS1M2
Microsoft Windows Server 2008 for x649.3 TS1M09.3 TS1M2
DB2 Universal Database on Linux x649.3 TS1M09.3 TS1M2
DB2 Universal Database on AIX9.3 TS1M09.3 TS1M2
Aster Data nCluster on Linux x649.3 TS1M09.3 TS1M2
Microsoft Windows Server 20089.3 TS1M09.3 TS1M2
Microsoft Windows Server 2003 for x649.3 TS1M09.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3 TS1M09.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M09.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M09.3 TS1M2
Microsoft® Windows® for x649.3 TS1M09.3 TS1M2
Z649.3 TS1M09.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.